<template>
	<view class="w-process">
		<scroll-view :show-scrollbar="false" :scroll-y="true" class="scroll">
			<view class="img">
				<img class="invoiceImg" src="./img/22.png" />
			</view>
			<view class="card-mini">
				<view class="card-header">
					<view class="title">发票详情</view>
					<view class="list">
						<!-- 2显一 -->
						<view class="status-card">已用</view>
						<view class="status-card">未用</view>
						<!-- 2显一 -->
						<view class="status-card" style="color: #E75555;border: 2rpx solid #E75555;">验真</view>
						<view class="status-card" style="color: #E75555;border: 2rpx solid #E75555;">正常</view>
						<view class="status-card" style="color: #579FFD;border: 2rpx solid #579FFD;">增值税专用发票</view>
					</view>
				</view>
				<view class="content">
					<view class="content-name">发票类型</view>
					<view class="content-value">增值税专用发票</view>
				</view>
				<view class="content">
					<view class="content-name">发票代码</view>
					<view class="content-value">032002100104</view>
				</view>
				<view class="content">
					<view class="content-name">发票号码</view>
					<view class="content-value">38105955</view>
				</view>
				<view class="content">
					<view class="content-name">金额</view>
					<view class="content-value">100000</view>
				</view>
				<view class="content">
					<view class="content-name">税率</view>
					<view class="content-value">6</view>
				</view>
				<view class="content">
					<view class="content-name">税额</view>
					<view class="content-value">5660.38</view>
				</view>
				<view class="content">
					<view class="content-name">卖方</view>
					<view class="content-value">上海黑湖科技有限公司</view>
				</view>
				<view class="content">
					<view class="content-name">日期</view>
					<view class="content-value">2021/10/22</view>
				</view>
				<view class="content">
					<view class="content-name">买方</view>
					<view class="content-value">爱丽家居科技股份有限公司</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script setup>

</script>

<style lang="less" scoped>
.w-process {
	width: 100%;
	// height: calc(100vh - 88rpx);
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: #F5F5f5;

	.scroll {
		height: 100%;
		width: 98%;
		box-sizing: border-box;
		padding: 10rpx;
		margin: 10rpx auto;

		.img {
			width: 100%;
			height: auto;
			border-radius: 10rpx;
			box-sizing: border-box;
			overflow: hidden;
			padding: 5rpx;
			background-color: #95918F;

			.invoiceImg {
				width: 100%;
				height: 100%;
			}
		}

	}
}

.card-mini {
	height: auto;
	background: #fff;
	border-radius: 16rpx;
	margin: 20rpx 0;
	padding: 8rpx 20rpx;
	box-shadow: 0rpx 0rpx 8rpx 0 #A5A5A5;

	.card-header {
		height: 70rpx;
		line-height: 70rpx;
		display: flex;
		flex-direction: row;
		border-bottom: 2rpx solid #F5F5F5;

		.title {
			width: 20%;
			line-height: 70rpx;
			font-size: 30rpx;
		}

		.list {
			flex: 1;
			margin: 13rpx 0;

			.status-card {
				float: right;
				width: auto;
				padding: 0 10rpx;
				height: 40rpx;
				line-height: 40rpx;
				font-size: 24rpx;
				text-align: center;
				border-radius: 20rpx;
				color: #FFB76A;
				border: 2rpx solid #FFB76A;
				margin-right: 10rpx;
			}
		}
	}

	.content {
		height: 60rpx;
		width: 100%;
		line-height: 60rpx;
		font-size: 28rpx;
		color: #C8C9CC;
		display: flex;
		flex-direction: row;
		border-bottom: 2rpx solid #F5F5F5;

		.content-name {
			width: auto;
			padding-right: 20rpx;
			text-align: left;
		}

		.content-value {
			flex: 1;
			text-align: left;
		}
	}
}

.content:last-child {
	border-bottom: none;
}
</style>